<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 23827
  Date: 2019/9/25
  Time: 21:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>报名的需求订单</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../plugins/layui/css/layui.css" media="all">

    <!-- 引入bootstrap框架的样式文件 -->
    <link rel="stylesheet" href="../plugins/bootstrap/css/bootstrap.css" type="text/css">
    <!-- 引入H+框架的样式文件 -->
    <link href="../plugins/Hplus-v.4.1.0/css/style.css?v=4.1.0" rel="stylesheet">

    <link rel="stylesheet" href="../css/order/enrolmentDemandOrder.css" type="text/css">

</head>

<body>

<!--响应式导航-->
<%@ include file="../common/nav.jsp"%>
<ul class="layui-nav" lay-filter="">

    <li class="layui-nav-item first-nav"><a href="${path}/service/release" style="text-decoration: none">发布的服务订单</a></li>
    <li class="layui-nav-item "><a href="${path}/service/enrolment" style="text-decoration: none">报名的需求订单</a></li>
</ul>

<div class="layui-tab">
    <ul class="layui-tab-title">
        <li class="layui-this" id="all">全部</li>
        <li>未完成</li>
        <li>已完成</li>
        <%--<li>待评价</li>--%>
        <%--<li>已完成</li>--%>
    </ul>
    <div class="layui-tab-content">
        <p class="p1">报名的需求订单</p>
        <%--<c:if test="${!empty }"></c:if>--%>
        <%--<div class="input-group" id="table-text">--%>
            <%--<input type="text" placeholder="输入订单编号" class="input form-control" class="forthtext"  id="number">--%>
            <%--<span class="input-group-btn">--%>
                    <%--<button type="button" class="btn btn btn-primary" id="forthbutton" onclick="search()"> <i--%>
                            <%--class="fa fa-search" ></i>搜索</button>--%>
                <%--</span>--%>
        <%--</div>--%>
        <div class="layui-tab-item layui-show">
            <div class="table1">
                <table class="table">
                    <thead>
                    <tr class="active">
                        <th>订单编号</th>
                        <%--<th>需求名称</th>--%>
                        <th>需求者昵称</th>
                        <th>服务费用</th>
                        <th>交易时间</th>
                        <th>服务状态</th>
                        <th></th>
                    </tr>
                    </thead>
                    <c:forEach items="${demandOrderVoList}" var="dvo">
                        <c:if test="${dvo.status != 0}">
                    <tbody>

                    <tr class="default">
                        <td id="orderNumber">${dvo.orderNumber}</td>
                        <%--<td id="intro">${dvo.intro}</td>--%>
                        <td id="name">${dvo.name}</td>
                        <td id="price">${dvo.price}</td>
                        <td id="commitTime">${dtime}</td>
                        <c:if test="${dvo.status == 1}">
                        <td><button type="submit" class="btn btn-primary" style="border: 0px"><a href="${path}/service/del?id=${dvo.id}" style="color: white">取消报名</a></button></td>
                        </c:if>
                        <c:if test="${dvo.status == 2}">
                            <td><button type="submit" class="btn btn-primary" style="background-color: #00A779;border: 0px"><a href="${path}/service/del?id=${dvo.id}" style="color: white">删除订单</a></button></td>
                        </c:if>
                    </tr>

                    </tbody>
                        </c:if>
                    </c:forEach>
                </table>
            </div>
        </div>
        <div class="layui-tab-item">
            <div class="table1">
                <table class="table">
                    <thead>
                    <tr class="active">
                        <th>订单编号</th>
                        <%--<th>订单名称</th>--%>
                        <th>需求者昵称</th>
                        <th>服务费用</th>
                        <th>交易时间</th>
                        <th>服务状态</th>
                        <th></th>
                    </tr>
                    </thead>
                    <c:forEach items="${demandOrderVoList}" var="dvo">
                        <c:if test="${dvo.status == 1}">
                    <tbody>
                    <tr class="default">
                        <td >${dvo.orderNumber}</td>
                        <%--<td>${dvo.intro}</td>--%>
                        <td >${dvo.name}</td>
                        <td >${dvo.price}</td>
                        <td >${dtime}</td>
                        <td><button type="button" class="btn btn-primary" style="border: 0px"><a href="${path}/service/del?id=${dvo.id}" style="color: white">取消报名</a></button></td>
                    </tr>
                    </tbody>
                        </c:if>
                    </c:forEach>
                </table>
            </div>
        </div>
        <div class="layui-tab-item">
            <div class="table1">
                <table class="table">
                    <thead>
                    <tr class="active">
                        <th>订单编号</th>
                        <%--<th>订单名称</th>--%>
                        <th>需求者昵称</th>
                        <th>服务费用</th>
                        <th>交易时间</th>
                        <th>服务状态</th>
                        <th></th>
                    </tr>
                    </thead>
                    <c:forEach items="${demandOrderVoList}" var="dvo">
                        <c:if test="${dvo.status == 2}">
                            <tbody>
                            <tr class="default">
                                <td >${dvo.orderNumber}</td>
                                <%--<td>${dvo.intro}</td>--%>
                                <td >${dvo.name}</td>
                                <td >${dvo.price}</td>
                                <td >${dtime}</td>
                                <td><button type="button" class="btn btn-primary" style="background-color: #00A779;border: 0px"><a href="${path}/service/del?id=${dvo.id}" style="color: white">删除订单</a></button></td>
                            </tr>
                            </tbody>
                        </c:if>
                    </c:forEach>
                </table>
            </div>
        </div>
        </div>
    </div>
</div>



<%--<%@ include file="../common/pageinfo.jsp"%>--%>
<%@ include file="../common/footer.jsp"%>



<script src="../plugins/layui/layui.all.js" charset="utf-8"></script>

<!-- bootstrap中的js插件依赖于jquery框架,所以必须先引入jquery的js文件 -->
<script src="../plugins/jquery/jquery.min.js"></script>
<!--引入bootstrap的js文件-->
<script src="../plugins/bootstrap/js/bootstrap.js"></script>

<script src="../js/order/enrolmentDemandOrder.js"></script>


<script>
    layui.use('element', function () {
        var $ = layui.jquery
            , element = layui.element;

    });
</script>

</body>

</html>